#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#define NULL 0
#include<iostream>
using namespace std;
struct student {
		long num;
		float score;
		struct student* next;
};
int main()
{
	struct student a, b, c;
	struct student* head;
	struct student* p = 0;
	a.num = 31001;
	a.score = 89.5;
	b.num = 31003;
	b.score = 90;
	c.num = 31007;
	c.score = 85;
	head = &a;
	a.next = &b;
	b.next = &c;
	c.next = NULL;
	do {
		cout << p->num <<p->score << endl;
		p = p->next;
	} while (p != NULL);
	return 0;
}